package com.huc.design.behavior.observer.casedemo;

import java.util.EventObject;

/**
 * @author huc
 * @version 1.0
 * @note 铃声事件类：用于封装事件源及一些与事件相关的参数
 * @date 2021/10/8 13:45
 */
public class RingEvent extends EventObject {
    private Boolean sound; //true表示上课铃声,false表示下课铃声
    public RingEvent(Object source,Boolean sound) {
        super(source);
        this.sound=sound;
    }

    public Boolean getSound() {
        return sound;
    }

    public void setSound(Boolean sound) {
        this.sound = sound;
    }
}
